package com.pojo;

import com.auto.annotation.AutoCode;
import com.auto.annotation.Column;
import com.auto.annotation.Table;

import java.io.Serializable;

/**
 * 单位信息
 */
@Table(name = "PM_COMPANY")
@AutoCode(isOverride = false, showWay = "list")
public class CompanyInfo implements Serializable {

    private static final long serialVersionUID = -2775034183934537298L;
    /**
     * 单位编号【仅显示】
     */
    @Column(flag = "primary" , treeId = true, autoGenneral = true ,treecolumn = true, jsname = "单位编号", jswidth = 150, jsAllowBlank = false, jsValidator = true, keyWordFilte = true)
    private String companyid;
    /**
     * 单位描述
     */
    @Column(oth = "NOT NULL",jsname = "单位名称", jsAllowBlank = false, jswidth = 150, keyWordFilte = true)
    private String companyname;
	/**
	 * 是否停用
	 *
	 */
    @Column(type="int",jsname="单位状态",render="function(v){if(v=='1'){return '已停用';}else {return '启用中';}}",
		    jsxtype="radiogroup [items:[{"
				    +"inputValue: '0',"
				    +"boxLabel: '启用',"
				    +"anchor  : '60%',"
				    +"name  : 'isstop',"
				    +"checked: true"
				    +"}, {"
				    +"inputValue: '1',"
				    +"anchor  : '60%',"
				    +"name  : 'isstop',"
				    +"boxLabel: '停用'"
				    +"}]]")
    private int isstop;

    //======================GETTERS && SETTERS=================//
    public String getCompanyid() {
        return companyid;
    }

    public void setCompanyid(String companyid) {
        this.companyid = companyid;
    }

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

	public int getIsstop() {
		return isstop;
	}

	public void setIsstop(int isstop) {
		this.isstop = isstop;
	}
}
